//Source file: C:\\javier\\mario\\Java\\taladro\\vista\\proyecto\\PanelProyecto.java

package taladro.vista.proyecto;

import javax.swing.JPanel;
import javax.swing.JButton;
import javax.swing.JLabel;

/**
 * @author  Administrator
 */
public class PanelProyecto extends javax.swing.JPanel 
{
   
   /**
    * GEN-END:initComponents
    * Variables declaration - do not modify
    */
   private javax.swing.JButton btnHerr;
   private javax.swing.JButton btnInst;
   private javax.swing.JLabel jLabel1;
   private javax.swing.JLabel jLabel10;
   private javax.swing.JLabel jLabel11;
   private javax.swing.JLabel jLabel2;
   private javax.swing.JLabel jLabel3;
   private javax.swing.JLabel jLabel4;
   private javax.swing.JLabel jLabel5;
   private javax.swing.JLabel jLabel6;
   private javax.swing.JLabel jLabel7;
   private javax.swing.JLabel jLabel8;
   private javax.swing.JLabel jLabel9;
   private javax.swing.JLabel lblDimTabX;
   private javax.swing.JLabel lblDimTabY;
   private javax.swing.JLabel lblHerrAct;
   private javax.swing.JLabel lblInstAct;
   private javax.swing.JLabel lblNoHerr;
   private javax.swing.JLabel lblNoInst;
   
   /**
    * Creates new form PanelProyecto
    * @roseuid 3F4049D100BC
    */
   public PanelProyecto() 
   {
        initComponents();    
   }
   
   /**
    * This method is called from within the constructor to
    * initialize the form.
    * WARNING: Do NOT modify this code. The content of this method is
    * always regenerated by the Form Editor.
    * @roseuid 3F4049D100C6
    */
   private void initComponents() 
   {
        java.awt.GridBagConstraints gridBagConstraints;

        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        lblDimTabX = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        btnHerr = new javax.swing.JButton();
        jLabel7 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        lblInstAct = new javax.swing.JLabel();
        lblHerrAct = new javax.swing.JLabel();
        btnInst = new javax.swing.JButton();
        jLabel10 = new javax.swing.JLabel();
        lblDimTabY = new javax.swing.JLabel();
        jLabel11 = new javax.swing.JLabel();
        lblNoHerr = new javax.swing.JLabel();
        lblNoInst = new javax.swing.JLabel();

        setLayout(new java.awt.GridBagLayout());

        jLabel1.setFont(new java.awt.Font("Dialog", 1, 14));
        jLabel1.setText("Dimensiones de Tablilla");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.gridwidth = 2;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        add(jLabel1, gridBagConstraints);

        jLabel2.setText("x");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
        add(jLabel2, gridBagConstraints);

        lblDimTabX.setText("10");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 1;
        add(lblDimTabX, gridBagConstraints);

        jLabel3.setText("min");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.gridy = 1;
        add(jLabel3, gridBagConstraints);

        jLabel4.setFont(new java.awt.Font("Dialog", 1, 14));
        jLabel4.setText("Herramientas");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 3;
        gridBagConstraints.insets = new java.awt.Insets(15, 0, 0, 0);
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        add(jLabel4, gridBagConstraints);

        jLabel5.setText("No.");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 4;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
        add(jLabel5, gridBagConstraints);

        jLabel6.setText("En uso:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 5;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
        add(jLabel6, gridBagConstraints);

        btnHerr.setText("Herramientas...");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 6;
        gridBagConstraints.gridwidth = 3;
        gridBagConstraints.insets = new java.awt.Insets(0, 0, 15, 0);
        add(btnHerr, gridBagConstraints);

        jLabel7.setFont(new java.awt.Font("Dialog", 1, 14));
        jLabel7.setText("Instrucciones");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 7;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        add(jLabel7, gridBagConstraints);

        jLabel8.setText("No. total:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 8;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
        add(jLabel8, gridBagConstraints);

        jLabel9.setText("Inst. Actual:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 9;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
        add(jLabel9, gridBagConstraints);

        lblInstAct.setText("Punto Cero");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 9;
        add(lblInstAct, gridBagConstraints);

        lblHerrAct.setText("T1S0000F0.54");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 5;
        add(lblHerrAct, gridBagConstraints);

        btnInst.setText("Instrucciones...");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 10;
        gridBagConstraints.gridwidth = 3;
        add(btnInst, gridBagConstraints);

        jLabel10.setText("y");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
        add(jLabel10, gridBagConstraints);

        lblDimTabY.setText("10");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 2;
        add(lblDimTabY, gridBagConstraints);

        jLabel11.setText("min");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.gridy = 2;
        add(jLabel11, gridBagConstraints);

        lblNoHerr.setText("10");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 4;
        add(lblNoHerr, gridBagConstraints);

        lblNoInst.setText("5");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 8;
        add(lblNoInst, gridBagConstraints);    
   }
   
   public void actDatosProyecto(double minX, double minY){
       this.lblDimTabX.setText(Double.toString(minX));
       this.lblDimTabY.setText(Double.toString(minY));
   }
   
   public void actDatosInst( int total, String instAct ){
       this.lblNoInst.setText( Integer.toString(total) );
       this.lblInstAct.setText( instAct );
   }
   
   public void actDatosInst( String instAct ){       
       this.lblInstAct.setText( instAct );
   }
     
   public void actDatosHerr( int total, String strHerr){
       this.lblHerrAct.setText( strHerr );
       this.lblNoHerr.setText( Integer.toString(total));
   }
   
   public void actDatosHerr( String strHerr){
       this.lblHerrAct.setText( strHerr );
   }
   
   public JButton getBotonInst(){
       return this.btnInst;
   }
   
   public JButton getBotonHerr(){
       return this.btnHerr;
       
   }

}
